package com.onemileshop.entiy.model;

import java.io.Serializable;

import android.os.Parcel;
import android.os.Parcelable;

public class EOrderDetails implements Parcelable
{
   // private static final long serialVersionUID = -7062210744600462463L;

   public EOrderDetails()
   {
	  
   }
   private EOrderDetails(Parcel in)
   {
	  Amount = in.readInt();
	  CommodityName=in.readString();
	  CommodityAccessoriesName=in.readString();
	  AttributeDetailsName=in.readString();
	  SpecificationName=in.readString();
	  OrderDetailsId=in.readString();
	  OrderId=in.readString();
	  CommodityId=in.readString();
	  CommodityPriceId=in.readString();
	  UnitPrice=in.readString();
	  CommodityAccessoriesId=in.readString();
	  CommodityAccessoriesPrice=in.readString();
	  TotalPrice=in.readString();
	  Discount=in.readString();
	  DiscountPrice=in.readString();
	  ActualTotalPrice=in.readString();
   }
   public int describeContents()
   {
	  return 0;
   }

   public void writeToParcel(Parcel out, int flags)
   {
	  out.writeInt(Amount);
	  out.writeString(CommodityName);
	  out.writeString(CommodityAccessoriesName);
	  out.writeString(AttributeDetailsName);
	  out.writeString(SpecificationName);
	  out.writeString(OrderDetailsId);
	  out.writeString(OrderId);
	  out.writeString(CommodityId);
	  out.writeString(CommodityPriceId);
	  out.writeString(UnitPrice);
	  out.writeString(CommodityAccessoriesId);
	  out.writeString(CommodityAccessoriesPrice);
	  out.writeString(TotalPrice);
	  out.writeString(Discount);
	  out.writeString(DiscountPrice);
	  out.writeString(ActualTotalPrice);
	  
   }

   public static final Parcelable.Creator<EOrderDetails> CREATOR = new Parcelable.Creator<EOrderDetails>()
   {
	  public EOrderDetails createFromParcel(Parcel in)
	  {
		 return new EOrderDetails(in);
	  }

	  public EOrderDetails[] newArray(int size)
	  {
		 return new EOrderDetails[size];
	  }
   };
   
   /**
    * 来自Commodity表
    */
   private String CommodityName;
   /**
    * 商品附件名称，来自CommdityAccessories表
    */
   private String CommodityAccessoriesName;
   /**
    * 附加属性名称（甜度，冷热）来自AttributeDetails表
    */
   private String AttributeDetailsName;
   /**
    * 规格（大小杯）来自Specificationbiao
    */
   private String SpecificationName;

   private String OrderDetailsId;

   private String OrderId;

   private String CommodityId;
   /**
    * 总数
    */
   private int Amount;
   /**
    * 商品价格Id
    */
   private String CommodityPriceId;
   /**
    * 单价
    */
   private String UnitPrice;
   /**
    * 添加物
    */
   private String CommodityAccessoriesId;
   /**
    * 添加物价格
    */
   private String CommodityAccessoriesPrice;
   /**
    * 总价
    */
   private String TotalPrice;
   /**
    * 折扣率(每次要查找要没有针对该商品的折扣)
    */
   private String Discount;
   /**
    * 折扣
    */
   private String DiscountPrice;
   /**
    * 实际总价
    */
   private String ActualTotalPrice;

   public String getCommodityName()
   {
	  return CommodityName;
   }

   public void setCommodityName(String commodityName)
   {
	  CommodityName = commodityName;
   }

   public String getCommodityAccessoriesName()
   {
	  if(CommodityAccessoriesName.equals("")||CommodityAccessoriesName==null)
	  {
		 return "无";
	  }
	  return CommodityAccessoriesName;
   }

   public void setCommodityAccessoriesName(String commodityAccessoriesName)
   {
	  CommodityAccessoriesName = commodityAccessoriesName;
   }

   public String getAttributeDetailsName()
   {
	  if(AttributeDetailsName.equals("")||AttributeDetailsName==null)
	  {
		 return "无";
	  }
	  return AttributeDetailsName;
   }

   public void setAttributeDetailsName(String attributeDetailsName)
   {
	  AttributeDetailsName = attributeDetailsName;
   }

   public String getSpecificationName()
   {
	  return SpecificationName;
   }

   public void setSpecificationName(String specificationName)
   {
	  SpecificationName = specificationName;
   }

   public String getOrderDetailsId()
   {
	  return OrderDetailsId;
   }

   public void setOrderDetailsId(String orderDetailsId)
   {
	  OrderDetailsId = orderDetailsId;
   }

   public String getOrderId()
   {
	  return OrderId;
   }

   public void setOrderId(String orderId)
   {
	  OrderId = orderId;
   }

   public String getCommodityId()
   {
	  return CommodityId;
   }

   public void setCommodityId(String commodityId)
   {
	  CommodityId = commodityId;
   }

   public int getAmount()
   {
	  return Amount;
   }

   public void setAmount(int amount)
   {
	  Amount = amount;
   }

   public String getCommodityPriceId()
   {
	  return CommodityPriceId;
   }

   public void setCommodityPriceId(String commodityPriceId)
   {
	  CommodityPriceId = commodityPriceId;
   }

   public String getUnitPrice()
   {
	  return UnitPrice;
   }

   public void setUnitPrice(String unitPrice)
   {
	  UnitPrice = unitPrice;
   }

   public String getCommodityAccessoriesId()
   {
	  return CommodityAccessoriesId;
   }

   public void setCommodityAccessoriesId(String commodityAccessoriesId)
   {
	  CommodityAccessoriesId = commodityAccessoriesId;
   }

   public String getCommodityAccessoriesPrice()
   {
	  return CommodityAccessoriesPrice;
   }

   public void setCommodityAccessoriesPrice(String commodityAccessoriesPrice)
   {
	  CommodityAccessoriesPrice = commodityAccessoriesPrice;
   }

   public String getTotalPrice()
   {
	  return TotalPrice;
   }

   public void setTotalPrice(String totalPrice)
   {
	  TotalPrice = totalPrice;
   }

   public String getDiscount()
   {
	  return Discount;
   }

   public void setDiscount(String discount)
   {
	  Discount = discount;
   }

   public String getDiscountPrice()
   {
	  return DiscountPrice;
   }

   public void setDiscountPrice(String discountPrice)
   {
	  DiscountPrice = discountPrice;
   }

   public String getActualTotalPrice()
   {
	  return ActualTotalPrice;
   }

   public void setActualTotalPrice(String actualTotalPrice)
   {
	  ActualTotalPrice = actualTotalPrice;
   }





}
